15.07.2010, 09:09
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; }