SA-MP Forums Archive
help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me (/showthread.php?tid=268136)



help me - [MKD]Max - 11.07.2011

what the worng with this its not work in game they can enter my car like what they want


Код:
new string[256];
    new name[256];
	new playerName[24];
	GetPlayerName(playerid, playerName, 24);
	GetPlayerName(BoughtCarsOwner[GetPlayerVehicleID(playerid)], name, 256);
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER && BoughtCars[GetPlayerVehicleID(playerid)] == 999 && playerName[playerid] != name[playerid] && PlayerAdminLevel[playerid] < 1) {
	SendClientMessage(playerid,COLOR_YELLOW,"This car has been purchased from Grotti Car Showerroom. You are not the owner.");
	GetPlayerName(BoughtCarsOwner[GetPlayerVehicleID(playerid)], name,sizeof(name));
	format(string, sizeof(string), "This vehicle is registered to: %s",name);
	SendClientMessage(playerid, COLOR_YELLOW, string);
	RemovePlayerFromVehicle(playerid);
	return 1;
}



Re: help me - [MKD]Max - 11.07.2011

help me please its for buy cars its not work they can enter my car help!