- 0
Problema comanda /oplace
-
Similar Content
-
- 7 answers
- 2,241 views
-
- 3 answers
- 2,192 views
-
- 3 replies
- 294 views
-
- 1 reply
- 252 views
-
- 2 answers
- 772 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Cordyandrey
Salut, folosesc /oplace ok pun cadoul si cand intra un civil in el apare asta.. apoi zice comanda nu exsita cand incerc sa pun iar, stie cineva de ce?
Poza:
https://imgur.com/a/adGo1Jl
Code:
CMD:oplace(playerid, params[]) {
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
if(eventobjects > 9) return SCM(playerid,COLOR_WHITE,"You can't place more than 10 objects.");
new objectid,prize,sendername[30],Float:pX,Float:pY,Float:pZ,string[128];
if(sscanf(params, "dd",objectid,prize))
{
SendClientMessage(playerid, COLOR_WHITE,"{008080}Usage: {FFFFFF}/oplace <ObjectID> <Prize>");
SendClientMessage(playerid, COLOR_WHITE,"[OBJECTS] Cadou: 19054 - 19058 | Glob craciun: 19059 - 19063 | Oua paste: 19341 - 19345");
return 1;
}
if(prize < 1 || prize > 10000000) return SendClientMessage(playerid, COLOR_WHITE, "Prize must be between $1 and $10,000,000.");
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerPos(playerid,pX,pY,pZ);
eventobjects++;
objectevent[eventobjects] = CreatePickup(objectid, 1, pX+2,pY,pZ, -1);
eventprizeobj[eventobjects] = prize;
format(string,sizeof(string),"Admin %s[admin:%d] started an event. Object: %d, prize: $%s.",sendername,PlayerInfo[playerid][pSQLID],objectid,FormatNumber(prize));
ABroadCast(COLOR_RED2, string,1);
Adminlog(string);
return 1;
}
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now