17.02.2014, 17:39
Hello everyone I have a problem.
in this code
in the ini file
I would like to create a code that when a player enters in the vehicle, the pawno checks if the name matches
to [vowno]
in this code
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new name[MAX_PLAYER_NAME+1];
format(VehicleInfo[playerid][vOwner],24,"%s", name);
if(newstate == PLAYER_STATE_DRIVER)
{
if(VehicleInfo[playerid][vOwner] == GetPlayerName(playerid, name, sizeof(name)) )
{
SaveID(playerid);
SendClientMessage(playerid,COLOR_GREEN,"welcome to your vehicle");
}
else
{
SendClientMessage(playerid,COLOR_RED,"this isn't your vehicle");
}
}
return 1;
}
Код:
Owner = My_Name
to [vowno]

