14.01.2010, 11:29
i dont really understand what youre trying to tell me with copcar and infernus but i canb show you how to usw this infernus just for name:
at the top:
gamemodeinit
should work but untested.
at the top:
Код:
new infernus;
Код:
infernus = CreateVehicle(411, x, y, z, a, c1, c2, respawndelay);//replace those x, y ....
Код:
public OnPlayerEnterVehicle(playerid, vehicleid) //no other parameters? idk { if(vehicle == infernus) { new playername[24]; GetPlayerName(playerid, playername, 24); if(strcmp(playername, "Yournamehere", true) != 0) { new Float:x, Float:y, Float:z, str[128]; SetPlayerPos(playerid, x, y, z); format(str, 128, "~r~This is %s's car~n~You are not allowed to use it", "Yournamehere"); GameTextForPlayer(playerid, str, 5000, 5); return 1; } } return 1; }