01.11.2011, 13:52
2:
tenta.
pawn Код:
new MeuKM[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
MeuKM[playerid]++;
}
return 1;
}
// COMANDO
if(!strcmp(cmdtext,"/rdei", true))
{
new str[100]; format(str, sizeof(str),"Vocк rodou %d kilфmetros.", MeuKM[playerid]);
return 1;
}