27.02.2011, 14:08
Is it possible to make a command player specific? like you have to be logged in as this person in order to use it. I remember it being possible to make vehicles player specific so I would thing commands could be also. If it is, how would i do that?
Code:
if(strcmp(cmd, "/oldcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
format(string, sizeof(string), "Your old car was: %d",gLastCar[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, string);
format(string, sizeof(string), "[ADMIN]: %s Has Asked to the System his Old Car", sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Asked for his Old Car",d,m,y,h,mi,s,sendername);
AdminLog(string);
}
return 1;
}


