public OnPlayerEnterVehicle( playerid, vehicleid, ispassenger )
{
if( vehicleid == 574 )
{
if(GetPVarInt(playerid,\"Uttisztito\") == Uttisztito)
{
new obj = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,50.0);
AttachObjectToVehicle(obj,GetPlayerVehicleID(playerid), 0.10000000,0.60000002,1.25735879, 2.0, 2.0, 3.0);
SendClientMessage(playerid,COLOR_RED,\"Elkezdted a munkát! Menj a Piros Checkpointokba\");
new rand = random(sizeof(UTCP));
SetPlayerCheckpoint(playerid, UTCP[rand][0],UTCP[rand][1],UTCP[rand][2], 4);
GameTextForPlayer(playerid, \"~g~Elkezdted a munkát!\", 3000, 3);
}
else if(GetPVarInt(playerid,\"Uttisztito\") == Munka_Nincs)
{
SendClientMessage(playerid,COLOR_RED,\"Nem vagy Uttisztitó!\");
}
}
return 1;
}
Ebbe mi a hiba mert ha beleülök nem indul el a munka.