|
|
#1 |
|
Little Clucker
![]() Join Date: Jun 2010
Posts: 15
Reputation: 0
|
Bonjour à tous,
Je voulais vous demander si quelqu'un savait m'aider car je trouve embêtant de changer son skin en faisant /vetement puis suivant Alors qu'il y aurait beaucoup plus simple de faire /vetement IDDUVETEMENT Si quelqu'un pouvait m'aider ! Merci à vous ! |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2009
Location: Hell
Posts: 2,046
Reputation: 99
|
Bonjour je ne compris pas de Français parce que je suis portuguese mais je vous faire de script
Try it! pawn Code:
Sorry for my bad French |
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Oct 2008
Posts: 658
Reputation: 2
|
Ceci me semble mieux, mais ne change pas grand chose
Code:
#include <a_samp>
new
string[256];
#define rouge 0xF60000AA
public OnPlayerCommandText(playerid, cmdtext[])
{
new
cmd[256],
tmp[256],
haz,
idex;
cmd = strtok(cmdtext, idex);
if(format(cmd, 256,"vetement"))
{
tmp = strtok(cmdtext, idex);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /vetement [id skin]");
return 1;
}
haz = strval(tmp);
SetPlayerSkin(playerid, haz);
format(string, sizeof(string),"Tu ai change de vetement sur le ID: %d",haz);
SendClientMessage(playerid, rouge, string);
}
return 0;
}
strtok(const stringa[], &index)
{
new length = strlen(stringa);
while ((index < length) && (stringa[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (stringa[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = stringa[index];
index++;
}
result[index - offset] = EOS;
return result;
}
|
|
|
|
|
|
#4 |
|
Little Clucker
![]() Join Date: Jun 2010
Posts: 15
Reputation: 0
|
Salut !
Merci à vous deux ! Thank you and don't Worry Dark ! Je vais tester ça ! I go to test ! Merci ! Edit : J'ai oublié le skin staff, sa aurait été bien de le retirer de cette manière les joueurs ne pourrait pas prendre le skin Admin. |
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Oct 2008
Posts: 658
Reputation: 2
|
Code:
if(format(cmd, 256,"vetement"))
{
tmp = strtok(cmdtext, idex);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /vetement [id skin]");
return 1;
}
if(haz == IDSKINSTAFF)
{
format(string, sizeof(string),"Le skin %d est réservé pour les admins, choisis en un autre",haz);
SendClientMessage(playerid, rouge, string);
return 1;
}
haz = strval(tmp);
SetPlayerSkin(playerid, haz);
format(string, sizeof(string),"Tu ai change de vetement sur le ID: %d",haz);
SendClientMessage(playerid, rouge, string);
}
|
|
|
|
|
|
#6 |
|
Little Clucker
![]() Join Date: Jun 2010
Posts: 15
Reputation: 0
|
Merci à toi
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Oct 2008
Posts: 658
Reputation: 2
|
Avec plaisir
|
|
|
|
|
|
#8 |
|
Little Clucker
![]() Join Date: Jun 2010
Posts: 15
Reputation: 0
|
Dis moi je crois que j'ai du me tromper quelque part, si jamais tu avais le temps un jour on pourrait regarder ça ensemble ? Merci à toi"
|
|
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Oct 2008
Posts: 658
Reputation: 2
|
Te tromper?
|
|
|
|
|
|
#10 |
|
Little Clucker
![]() Join Date: Jul 2011
Posts: 47
Reputation: 0
|
Je cherche a cree la commande /acceptermort (pour que les medeçin ai du travail) et /comeback je n'arrive vrement pas svp aider moi
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TUTO]Fais ta propre commande ! | [S4League]Jinku | Français/French | 11 | 22/12/2012 05:53 PM |
| [AIDE] j'ai besoin de votre aide | Carlo_Tysou | Français/French | 5 | 14/06/2010 11:38 AM |
| Ajouter Commande Braquage de Banque | fast360 | Français/French | 4 | 29/05/2010 07:41 PM |
| sftdm /park commande | baba59 | Français/French | 4 | 24/05/2010 05:15 PM |
| [aide pour crée un gps] Aidé moi svp :) | Dylan_Torreto | Français/French | 9 | 18/05/2010 05:14 AM |