24.10.2011, 18:55
pawn Код:
dcmd_rank( playerid, params[] )
{
new id;
if (strlen(params))
{
id = strval(params);
if(IsPlayerConnected(id))
{
new str[256];
SendClientMessage(id,COLOR_YELLOW,"[FunZoneLT]>> Dabartinis lygis:");
GetPlayerRank(id);
format(str,sizeof(str),"[FunZoneLT]>> Nuzudymai: %d Mirtys: %d ",GetPlayerKills(id),GetPlayerDeaths(id));
SendClientMessage(id,0x00FF00AA,str);
}
else
{
SendClientMessage(playerid,0x00FF00AA, "[FunZoneLT]>> Tokio zaidejo nera.");
}
}
else
{
SendClientMessage(playerid,0x00FF00AA, "[FunZoneLT]>> /rank [zaidejoid]");
}
return 1;
}