- 0
Problema !
-
Similar Content
-
- 1 reply
- 76 views
-
- 2 answers
- 898 views
-
Problema turf
By Soryn.,
- 3 answers
- 454 views
-
- 0 replies
- 191 views
-
- 2 replies
- 359 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
GrEEn
Salutare ma chinui de 2 zile sa fac o comanda care sa mearga doar pentru admini si nu reusesc va rog ajutatima
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cg", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(rampa, 121.69024, 313.76419, 75.41006, 8);
}
else return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Nu esti RCON Admin!");
}
if (strcmp("/og", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
MoveObject(rampa, 121.69024, 313.76419, 69.10378, 8);
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "Nu esti un administrator level 1.");
}
return 1;
}
return 0;
}
Link to comment
Share on other sites
4 answers to this question
Recommended Posts