GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: anamafia le 27 Novembre 2008, 20:43:47
-
Bonjour j'ai un petit problème sur mon GoDFather pour les hitmans la cmd "givehit" pour donner le contrat ne marche pas il me dit "Ce joueur n'est pas un hitman" alors qui'l est Hitman auriez vous la reponse please >?
-
Il faut trifouiller ton script.
-
Tkt pas j'ai bidouiller à tout concernant les hitman en particulier la zone du Givehit mais toujours rien du tout enfin si "Ce joueur n'est pas Hitman" :wall
-
Peut tu montrer ta commande /givehit
merci ;)
-
else if ((strcmp("givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("givehit")))
{
if(PlayerInfo[playerid][pRank] < 4)
{
SendClientMessage(playerid, COLOR_GREY, " You need Rank 4 to Give Contracts to Hitmans !");
return 0;
}
if(hitfound == 0)
{
SendClientMessage(playerid, COLOR_GREY, " There is no Hit Founded yet, use Contracts in the Portable first !");
return 0;
}
tmp = strtok(text, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "UTILISATION: Givehit [playerid/PartOfName]");
return 0;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pMember] != 8)
{
SendClientMessage(playerid, COLOR_GREY, " Ce joueur n'est pas un Hitman !");
return 0;
}
-
Ha Esque le hitman est rang 4 si il ne les pas c'est normal que tu peut pas ....
if(PlayerInfo[playerid][pRank] < 4)
Ou sinon tes sur que tu la mis dans la bonne faction (la faction 8)
-
tu aurait pus donne la commandes en entier pas que le debut.