Cmd doesn't work
#3

Quote:
Originally Posted by -Luis
Посмотреть сообщение
Try using this;
Код:
COMMAND:ismesti(playerid, params[])
{
if(PlayerInfo[playerid][pPgaujosvadas] == 0) return SendClientMessage( playerid, -1, "Tu ne mafijos vadas!" );
new giveplayerid,pName[24],gName[24],string[100];
if(sscanf(params, "u", giveplayerid))return SendClientMessage(playerid, 0xFFFFFFFF, "/ismesti [ћaidėjo ID]");
else if(!IsPlayerConnected(giveplayerid))return SendClientMessage(playerid, 0xFF0000FF, "Tokio ћaidėjo nėra!");
else
{
GetPlayerName(playerid, pName,24);
GetPlayerName(giveplayerid,gName,24);
PlayerInfo[giveplayerid][pGaujoi] = false;
format(string, sizeof(string),"Iљmetėte ћaidėją %s",gName);
SendClientMessage(playerid,0xFFFFFFAA,string);
SendClientMessage(giveplayerid,0xFFFFFFAA,"Jūs iљmestas iљ mafijos.");
}
Same.
Reply


Messages In This Thread
Cmd doesn't work - by Louris - 04.02.2013, 15:58
Re: Cmd doesn't work - by Luis- - 04.02.2013, 15:59
AW: Re: Cmd doesn't work - by Louris - 04.02.2013, 16:05
AW: Cmd doesn't work - by Louris - 04.02.2013, 16:24
AW: Cmd doesn't work - by Louris - 04.02.2013, 16:55
Re: Cmd doesn't work - by Luis- - 04.02.2013, 16:57
AW: Cmd doesn't work - by Louris - 04.02.2013, 16:58
Re: Cmd doesn't work - by Luis- - 04.02.2013, 17:01

Forum Jump:


Users browsing this thread: 3 Guest(s)