29.08.2012, 07:39
ok i have this cmd
i want it to have a message when made above the actual tiki saying type /picktiki to pick it up please help
pawn Код:
CMD:maketiki(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] <= 4)
{
return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
}
if(IsPlayerInAnyVehicle(playerid))
{
return SendClientMessage(playerid,COLOR_GRAD2," You can't do that while in a vehicle !");
}
new string[64];
new Float:X,Float:Y,Float:Z;
new location[MAX_ZONE_NAME];
GetPlayerPos(playerid,X,Y,Z);
CreateTiki(X, Y, Z);
SetPlayerPos(playerid, X, Y-2, Z);
SendClientMessageEx(playerid, COLOR_GRAD1,"* Tiki created !");
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
format(string, sizeof(string), "AdmWarning: %s has created a tiki in %s.", GetPlayerNameEx(playerid), location);
ABroadCast(COLOR_LIGHTRED, string, 1);
return 1;
}