GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: maxya le 01 Décembre 2013, 11:43:33
-
Salut,
Alors voila mon problème, j'ai ajouté sur mon serveur le FS X-Administration qui marche à merveille, mais je ne peux plus utilisé les commandes qui sont sur mon GM sa me fais commande inconnu .
Merci de m'aider,
-
Sans code, nous ne pouvons pas t'aider.
-
Enfaite pour ma commande c'est une commande normale:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm", cmdtext, true, 10) == 0)
{
PrendreArmes(playerid);
//SetPlayerPos(playerid,);
GivePlayerWeapon(playerid,24,500);
return 1;
}
}
Et PrendreArmes:
forward PrendreArmes(playerid);
public PrendreArmes(playerid)
{
new i;
if(IsPlayerConnected(playerid))
{
for(i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, PlayerWeapon[playerid][i][0], PlayerWeapon[playerid][i][1]);
}
}
}
Sinon le FS le voila:
http://www.gtaonline.net/forums/index.php?topic=13781.0 (http://www.gtaonline.net/forums/index.php?topic=13781.0)
Merci d'avance,