27.10.2010, 20:36
pawn Код:
new playerid2; // On top of my script
dcmd_stats(playerid, params[])
{
new string[156];
new name[MAX_PLAYER_NAME];
if(sscanf(params, "u", playerid2))
{
stats = SetTimerEx("Stats", 1000, true, "i", playerid);
}
else if(playerid2 == INVALID_PLAYER_ID) SendClientMessage(playerid, Red, "[Server] : Invalid Player ID! Player not connected");
else if(playerid2 == playerid)
{
stats = SetTimerEx("Stats", 1000, true, "i", playerid);
}
else
{
stats = SetTimerEx("Stats", 1000, true, "i", playerid2);//just change this to playerid2
}
return 1;
}