10.12.2011, 03:27
I need help guys Im trying to add a new name in OnPlayerConnect so it will detect the player's name that he has a reserved car.. so here's the script
public OnPlayerConnect(playerid)
{
new tname[MAX_PLAYER_NAME];
GetPlayerName(playerid, tname, sizeof(tname));
if(!strcmp(tname, "[USD]Ad10z[Du]", true))
{
isReserved[playerid] = 1;
}
else isReserved[playerid] = 0;
}
public OnPlayerConnect(playerid)
{
new tname[MAX_PLAYER_NAME];
GetPlayerName(playerid, tname, sizeof(tname));
if(!strcmp(tname, "[USD]Ad10z[Du]", true))
{
isReserved[playerid] = 1;
}
else isReserved[playerid] = 0;
}