OnPlayerUpdate
#3

public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,382.4741,2 548.9509,20.1041))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
}
}
if(IsPlayerInRangeOfPoint(playerid,15.0,-1185.4705,27.1411,17.6159))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
}
}

new InfoString[512];
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < 10)
{
State[playerid] = "Noob";
}
if(GetPlayerScore(playerid) >= 10 && GetPlayerScore(playerid) < 50)
{
State[playerid] = "Newbie";
}
if(GetPlayerScore(playerid) >= 51 && GetPlayerScore(playerid) < 101)
{
State[playerid] = "Hero";
}
if(GetPlayerScore(playerid) >= 101 && GetPlayerScore(playerid) < 501)
{
State[playerid] = "Adviser";
}
if(GetPlayerScore(playerid) >= 501 && GetPlayerScore(playerid) < 2001)
{
State[playerid] = "Judge";
}
if(GetPlayerScore(playerid) >= 2001 && GetPlayerScore(playerid) < 5001)
{
State[playerid] = "Advanced";
}
if(GetPlayerScore(playerid) >= 5001 && GetPlayerScore(playerid) < 10001)
{
State[playerid] = "Dominator";
}
if(GetPlayerScore(playerid) >= 10001 && GetPlayerScore(playerid) < 100001)
{
State[playerid] = "King";
}
if(GetPlayerScore(playerid) >= 100001)
{
State[playerid] = "Minister";
}
if(IsPlayerNPC(playerid)) return 0;
format(InfoString, sizeof(InfoString), "Kills: ~w~~W~%d~N~~r~Deaths: ~W~%d~N~~P~Ratio:~W~ %0.2f~N~~Y~Score: ~W~%d~N~~g~Rank:~W~ %s", pInfo[playerid][Kills],pInfo[playerid][Deaths],FloatInfo[playerid][Kills]/FloatInfo[playerid][Deaths],GetPlayerScore(playerid),State[playerid]);
TextDrawSetString(PPing[playerid], InfoString);
}
#if PauseDetectSystem == true
pTick[playerid] = GetTickCount();
#endif
#if MoveSystem == true
if(pInfo[playerid][Move] == 1)
GetPlayerHoldingKey(playerid);
#endif
return 1;
}
Reply


Messages In This Thread
OnPlayerUpdate - by SPA - 12.04.2014, 12:11
Re: OnPlayerUpdate - by Vince - 12.04.2014, 12:19
Re: OnPlayerUpdate - by SPA - 12.04.2014, 12:30
Re: OnPlayerUpdate - by SPA - 12.04.2014, 12:32
Re: OnPlayerUpdate - by BroZeus - 12.04.2014, 12:35
Re: OnPlayerUpdate - by SPA - 12.04.2014, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)