24.05.2013, 02:18
Quote:
Encontrei!
Код:
if(strcmp(cmdtext,"/kit5",true)==0){ { if(GetPlayerMoney(playerid) >= 8000) { GivePlayerMoney(playerid, -8000); new var0[265]; new var1[30]; GetPlayerName(playerid, var1, 30); format(var0, 265, "%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )", var1); SendClientMessageToAll(Roxo_Escuro, var0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 34, 99999); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 31, 99999); GivePlayerWeapon(playerid, 16, 99999); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, Verde_Floresta, "[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente"); PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0); } return 1; } Код:
if(strcmp(cmdtext,"/kit5",true)==0) { if(GetPlayerMoney(playerid) >= 8000) { GivePlayerMoney(playerid, -8000); new var0[265]; new var1[30]; GetPlayerName(playerid, var1, 30); format(var0, 265, "%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )", var1); SendClientMessageToAll(Roxo_Escuro, var0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 34, 99999); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 31, 99999); GivePlayerWeapon(playerid, 16, 99999); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, Verde_Floresta, "[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente"); PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0); } return 1; } |