28.08.2014, 10:08
[HELP]
How to create Timer On Using command
This my code
//Pick Ammo
CMDickammo(playerid,params[])
{
for(new i= 0; i < sizeof(pickup_Box); i++)
{
new Float,Float: y,Float: z;
new weapons[13][2];
GetPlayerWeaponData( playerid, i, weapons[i][0], weapons[i][1] );
SetPlayerAmmo( playerid, i, weapons[i][1] + ( 5 + random( 500 ) ) );
GetObjectPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, x, y ,z, 10.0)) { SendClientMessage( playerid, -1, "Anda dekat dengan objek Pick_Box!" ); }
}
return 1;
}
Please Help Me
Thanks
No Ones Help o.O ?
How to create Timer On Using command
This my code
//Pick Ammo
CMDickammo(playerid,params[])
{
for(new i= 0; i < sizeof(pickup_Box); i++)
{
new Float,Float: y,Float: z;
new weapons[13][2];
GetPlayerWeaponData( playerid, i, weapons[i][0], weapons[i][1] );
SetPlayerAmmo( playerid, i, weapons[i][1] + ( 5 + random( 500 ) ) );
GetObjectPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, x, y ,z, 10.0)) { SendClientMessage( playerid, -1, "Anda dekat dengan objek Pick_Box!" ); }
}
return 1;
}
Please Help Me
Thanks
No Ones Help o.O ?