if(strcmp(cmd, "/ควัน", true) == 0)
{
if (PlayerInfo[playerid][pDonateRank] >= 4)
{
SetPlayerAttachedObject( playerid, 0, 18645, 1, 0.428057, 0.044377, 0.000000, 79.508934, 81.517356, 0.000000, 1.000000, 1.000000, 1.000000 ); // MotorcycleHelmet1 - 44
SetPlayerAttachedObject( playerid, 1, 18671, 1, -0.990968, 1.619524, -1.545450, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // carwashspray - 77
SetPlayerAttachedObject( playerid, 3, 18681, 1, 0.000000, 0.000000, -1.604822, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // explosion_fuel_car - 4474
SetPlayerAttachedObject( playerid, 4, 18682, 1, 0.000000, 0.000000, -0.147522, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // explosion_large - 7878
SetPlayerAttachedObject( playerid, 5, 18697, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // heli_dust - 22 - 666
SetPlayerAttachedObject( playerid, 8, 18720, 1, 0.000000, 0.000000, -1.702081, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // prt_watersplash - 0
SetPlayerAttachedObject( playerid, 9, 18720, 1, 0.000000, 0.000000, -1.702081, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // prt_watersplash - 777
SetPlayerAttachedObject( playerid, 10, 18724, 1, 0.000000, 0.000000, -1.758344, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // shootlight - oo
SetPlayerAttachedObject( playerid, 12, 18729, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // spraycan - 7777
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s ได้แปลงร่างเป็นไอควัน", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, 0xF6F67CAA, "คุณไม่สามารถใช้ได้ อยากใช้ได้กด /donate");
return 1;
}
return 1;
} |