19.01.2012, 02:14
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
new str[128];
new Vehicle = GetPlayerVehicleID(playerid);
format(str,sizeof(str),"/vehicles/%d",Vehicle);
new ow[MAX_PLAYER_NAME];
format(ow,sizeof(ow),"%s",dini_Get(str,"ownername"));
if(fexist(str)&&strcmp(PlayerName,ow,true))
{
SendClientMessage(playerid,COLOR_WHITE,"You have entered your vehicle");
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"this is not your vehicle");
}