GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Leonidas300 le 17 Juillet 2010, 19:46:20
-
salut, voila le probleme, IG quand je tappe /radio [texte] sa fait l'animation du phone, mais je veux que le personnage le range dans sa poche deque la 1er aplication est fini
et la IG sa met juste l'aplication ( la 1er ) mais il range pas le phone aprés
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[Radio]Chef %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[Radio]Capitaine %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[Radio]Lieutenant %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[Radio]Sergent %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[Radio]Officier %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[Radio]Cadet %s dit: %s", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, over. **", sendername, result);
}
SendRadioMessage(1, TEAM_BLUE_COLOR, string);
//ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,0,1);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE, 4.1,0,1,1,0,1);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
printf("%s", string);
return 1;
}
-
Pourquoi j'y ai pas pensé.. Merci, je vais essayer sa!
-
sa ?
//ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,0,1);
Je l'ai juste pris en éxemple
Bon Bref, voilà le résulta, sa me met le telephone aux oreils, comme prévut mais il le range pas
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[Radio]Chef %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[Radio]Capitaine %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[Radio]Lieutenant %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[Radio]Sergent %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[Radio]Officier %s dit: %s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[Radio]Cadet %s dit: %s", sendername, result); }
else
{
format(string, sizeof(string), "** %s(radio): %s, over. **", sendername, result);
}
SendRadioMessage(1, TEAM_BLUE_COLOR, string);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
SetTimer("radioanim", 1000, 0);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Radio]%s dit: %s", sendername ,result);
ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
printf("%s", string);
return 1;
};
-
Sa ne marche toujours pas
Double post
enfaite je veux quand on tappe /radio il sorte sont telephone et le range quand il a fini de le sortir x)