10.08.2010, 14:40
Is this the correct usage for a /duty command for the LSPD?
pawn Код:
dcmd_duty(playerid, params[])
{
#pragma unused params
if(PlayerToPoint(5.0, playerid, 302.292877,-143.139099,1004.062500))
SetPlayerArmedWeapon(playerid, 334);
SetPlayerAmmo(playerid, 1, 0);
GivePlayerWeapon(playerid, 334, 0);
SetPlayerArmour(playerid, 1000);
SetPlayerHealth(playerid, 1000);
SetPlayerColor(playerid, COLOR_BLUE);
SendClientMessage(playerid, COLOR_RED, "Succesfuly equipped");
return 1;
}