15.07.2010, 08:41
Код:
if(sscanf(params, "s", pstatus)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE: /pizza [out/in]"); if(!strcmp(pstatus, "out", true, 3)) { GetPlayerPos(playerid, x, y, z); cobjectid = CreateObject(1582, x, y, z, 0, 0, 0); AttachObjectToPlayer(cobjectid, playerid, OffsetX-0.1, OffsetY+0.18, OffsetZ-0.05, -90, 0, 0); } else if(!strcmp(pstatus, "in", true, 2)) { DestroyObject(cobjectid); }