Problem none........... ALL i need iz 2 figure out how 2 add a second name??
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == FireCat )
{
new pName[MAX_PLAYER_NAME];//Where we will store the players name in a 24 size.
GetPlayerName(playerid,pName,sizeof(pName));//Getting the players name and storing it in pName.
if(strcmp(pName,"Admin") == 0 )//String compare between the users name and the selected name.
{
SendClientMessage(playerid,-1,"YOUR A OG!");
}
else//Else if the 2 names don't match....
{
RemovePlayerFromVehicle(playerid);//Lets remove him from the vehicle
SendClientMessage(playerid,-1,"Get The Fuck OUT!");
}
}
}
return 1;
}