29.09.2010, 19:09
On top:
Command:
It should work
pawn Код:
new created[MAX_PLAYERS];
pawn Код:
dcmd_chp(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][Level] > 4)
{
if(created[playerid] != 0) return SendClientMessage(playerid, yellow, "You can only create one Hidden Package!");
else
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
created[playerid] = 1;
hiddenpackage = CreateObject(1210,x+2.0,y+1.0,z,0,0,0);
SendClientMessage(playerid,yellow,"You have succesfully created a Hidden Package!");
SendClientMessage(playerid,yellow,"Now you can use command /say or /announce to tell others about Hidden Package!");
SendClientMessage(playerid,yellow,"Remember, create one Hidden Package costs 2,500 score...");
SetPlayerScore(playerid, GetPlayerScore(playerid) - 2500);
}
return 1;
}