- 0
comanda zcmd
-
Similar Content
-
- 1 reply
- 17 views
-
- 4 replies
- 128 views
-
Comanda /fly
By xLinix96,
- 6 replies
- 3,252 views
-
- 10 replies
- 1,199 views
-
- 11 replies
- 258 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
vasy
cum as putea sa fac aceasta comanda
[pawn]COMMAND:wanted(playerid, params[])
{
new OtherPlayer, Stars;
// Send the command to all admins so they can see it
SendAdminText(playerid, "/wanted", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 2
if (APlayerData[playerid][PlayerLevel] >= 3)
{
if (sscanf(params, "ui", OtherPlayer, Stars)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/wanted <OtherPlayer> <Stars>\"");
else
if (IsPlayerConnected(OtherPlayer)) // If the player is a valid playerid (he's connected)
SetPlayerWantedLevel(OtherPlayer, Stars);
else
SendClientMessage(playerid, 0xFF0000FF, "{515151}Jucatorul nu este online");
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
[/pawn]
sa o fac sa nu mai fie pe playerid sa fie all, adica cand scriu /wanted sa ia stelele la tot serverul
<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>
Link to comment
Share on other sites
4 answers to this question
Recommended Posts