[Help]making a pickup with commands
#2

Try this (Not Tested):

pawn Код:
if(strcmp(cmd, "/createpickup", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new tmp[256], idx;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_HERE, "USE: /pickup [id]");

new PickupID = strval(tmp);
new Float:X, Float:Y, Float:Z, Float:Ang;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
X += (3 * floatsin(-Ang, degrees));
Y += (3 * floatcos(-Ang, degrees));
return CreatePickup(PickupID, 2, X+2, Y, Z);
}
else return SendClientMessage(playerid,COLOR_HERE,"You are not is RCON Administrator");
}
Reply


Messages In This Thread
[Help]making a pickup with commands - by hvampire - 24.01.2010, 22:56
Re: [Help]making a pickup with commands - by LuxurioN™ - 24.01.2010, 23:14
Re: [Help]making a pickup with commands - by hvampire - 24.01.2010, 23:36
Re: [Help]making a pickup with commands - by LuxurioN™ - 24.01.2010, 23:39
Re: [Help]making a pickup with commands - by hvampire - 24.01.2010, 23:42
Re: [Help]making a pickup with commands - by Babul - 24.01.2010, 23:53
Re: [Help]making a pickup with commands - by hvampire - 25.01.2010, 00:34

Forum Jump:


Users browsing this thread: 2 Guest(s)