19.08.2013, 15:53
Help?
pawn Код:
CMD:droppod(playerid, params[])
{
if(PlayerInfo[playerid][pPods] < 1) return ErrorMSG(playerid, "You don't have any pods to use!");
new podname[64];
if(sscanf(params,"s",podname)) return SendClientMessage(playerid, -1, "Usage: /droppod [name] (Example: Pod 1a");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
podname = CreateDynamicObject(1243, x, y, z, 0.0, 0.0, 0.0, -1, -1, -1, 300);
Create3DTextLabel("Pod", COLOR_GREEN, x, y, z, 40, 0, 0);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
podname = Create3DTextLabel("Crab", COLOR_GREEN, x, y, z, 40.0, 0, 0);
Update3DTextLabelText(podname, COLOR_GREEN, "%s\nOwner: %s\n/retrieve to get it back", podname, pName);
return 1;
}