10.03.2011, 09:17
pawn Код:
if (strcmp(cmdtext, "/kill", true)==0)
{
new pName[30];
new string[30];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s FOI PRA COVA", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
SendClientMessage(playerid,0x0000FFAA,"Vocк se matou!");
SetPlayerHealth(playerid, 0.00);
MyDeaths[playerid]++;
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
GivePlayerMoney(playerid, -1000);
return 1;
}
pawn Код:
if (strcmp("/mudar", cmdtext, true, 10) == 0)
{
new Nome[MAX_PLAYER_NAME];
new stringx[256];
GetPlayerName(playerid,Nome,sizeof Nome);
format(stringx, sizeof stringx, "%s Vai mudar de gang | Comando /mudar ",Nome);
SendClientMessageToAll(0xFF0000AA,stringx);
ForceClassSelection(playerid);
SetPlayerHealth(playerid, 0);
return 1;
}