if(strcmp(cmdtext, "/kit01", true) == 0) {
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s {FFFFFF}Adquiriu {FFD700}o Kit 1 por: {00FF00}R$600 {9370DB}[/KIT01]", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
GivePlayerMoney(playerid, -600);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 23, 50);
GivePlayerWeapon(playerid, 27, 90);
GivePlayerWeapon(playerid, 32, 400);
GivePlayerWeapon(playerid, 30, 400);
return 1;
}
if(GetPlayerMoney(playerid) < 600) return SendClientMessage(playerid, -1, "[ERRO] Vocк nгo possui dinheiro suficiente.");
pawn Код:
|