30.07.2010, 03:56
pawn Код:
dcmd_stand(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid)) {
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /stand [playerid]");
new player1 = strval(params), string[128], Float:X,Float:Y,Float:Z;
if(IsPlayerConnected(player1)) {
CMDMessageToAdmins(playerid,"STAND");
GetPlayerPos(player1,X,Y,Z);
stand = CreateObject(2898,X,Y,Z,0,0,0);
format(string, sizeof(string), "You have Created a Stand-On object for %s", pName(player1) );
return SendClientMessage(playerid,blue, string);
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}