GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: N@rbirock - 2012. július 05. - 12:43:38

Cím: Munka hiba
Írta: N@rbirock - 2012. július 05. - 12:43:38
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.
Cím: Munka hiba
Írta: dexi - 2012. július 05. - 13:30:02
nem a modelre gondoltál mint 574? Mert akk GetVehicleModel(vehicleid)
Cím: Munka hiba
Írta: N@rbirock - 2012. július 05. - 14:00:18
Müködik köszi.