- 0
comanda zcmd
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
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>
4 answers to this question
Recommended Posts