21.04.2018, 21:42
Hi, I did this way
Thanks anyway
PHP код:
CMD:number(playerid, params[])
{
if(pInfo[playerid][Telefon] == 0)
{
new string[220], number = randomEx(1000,99999999);
pInfo[playerid][Telefon] = number;
format(string, sizeof(string), "Your phonenumber is: %i",pInfo[playerid][Telefon]);
SendClientMessage(playerid,-1,string);
SaveStats(playerid);
}
else {
SendClientMessage(playerid,-1,""chat" You already have an phone number !");
}
return 1;
}