Zeteni az nem jó.
new k,kt[MAX_PLAYERS];
public OnGameModeInit()
{
k = CreateVehicle(kocsiid,X,Y,Z,A,szín1,szín2,300000); // írd át
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
KillTimer(kt[playerid]);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid = k)
{
kt[playerid] = SetTimerEx(\"kocsi\", 60*1000, 1,\"i\",playerid);
}
return 1;
}
forward kocsi(playerid);
public kocsi(playerid)
{
GivePlayerMoney(playerid, 500); // átírhatod
return 1;
}