06.02.2014, 04:33
(
Последний раз редактировалось ross8839; 06.02.2014 в 20:36.
)
Fixed.. loool
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2 && pizzabike)
{
if(JobStatus[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Type /startwork to start working!"); //this sends whenever my variable is set to 1
}
else
{
RemovePlayerFromVehicle(playerid); //when variable is 0, it doesnt kick me from vehicle
SendClientMessage(playerid, COLOR_GREY, "You don't work for the pizza place!"); //My variable is set to 0, and this sends... so it's as if it's skipping removeplayerfrom.. anyone?
}
}
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+5);