[Help] DeleteObject
#5

Here's the full command, I changed the names a little though :P

Код:
CMD:penis(playerid, params[])
{
    new pstatus[32];
   	new cobjectid;
	new Float:x, Float:y, Float:z;
	new Float:OffsetX, Float:OffsetY, Float:OffsetZ;
	new message[128];
    if(sscanf(params, "s", pstatus)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE: /penis [Out/In]");
    if(!strcmp(pstatus, "out", true, 3))
    {
   		GetPlayerPos(playerid, x, y, z);
   		cobjectid = CreateObject(322, x, y, z, 0, 0, 0);
		AttachObjectToPlayer(cobjectid, playerid, OffsetX-0.1, OffsetY+0.18, OffsetZ-0.05, -90, 0, 0);
		format(message, sizeof(message), "AdmCmd: %s has put his penis out.", ReturnPlayerName(playerid));
		SendClientMessageToAll(COLOR_LIGHTRED, message);
    }
    else if(!strcmp(pstatus, "in", true, 2))
    {
		DestroyObject(cobjectid);
		format(message, sizeof(message), "AdmCmd: %s has put his penis in.", ReturnPlayerName(playerid));
		SendClientMessageToAll(COLOR_LIGHTRED, message);
    }
    return 1;
}
Reply


Messages In This Thread
[Help] DeleteObject - by Dudits - 15.07.2010, 08:41
Re: [Help] DeleteObject - by Finn - 15.07.2010, 08:48
Re: [Help] DeleteObject - by Dudits - 15.07.2010, 08:58
Re: [Help] DeleteObject - by (SF)Noobanatior - 15.07.2010, 09:04
Re: [Help] DeleteObject - by Dudits - 15.07.2010, 09:09
Re: [Help] DeleteObject - by (SF)Noobanatior - 15.07.2010, 09:16
Re: [Help] DeleteObject - by Dudits - 15.07.2010, 09:24
Re: [Help] DeleteObject - by (SF)Noobanatior - 15.07.2010, 09:28
Re: [Help] DeleteObject - by Dudits - 15.07.2010, 09:32
Re: [Help] DeleteObject - by (SF)Noobanatior - 15.07.2010, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)