16
Scripting SA-MP [Pawn center] / Re : Problème tableau
« le: 21 Octobre 2012, 14:42:06 »
Cela dépend, si ils ont bcp de vie, t dans la merde, autrement fais une Commande
/detruire
/detruire
Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.
if(strcmp(cmd, "/skin", true) == 0 || strcmp(cmd, "/clothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtClothShop(playerid))
{
tmp = strtok(cmdtext, idx);
new id = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREEN, "Erreur ! il faut faire /skin [ID DU SKIN]");
return 1;
}
if(IsACopSkin(id) == 0)
{
if(IsValidSkin(id))
{
SetPlayerSkin(playerid,id);
PlayerInfo[playerid][pChar] = id;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Vendeur] : Jolie Tenue !");
return 1;
}
#include <a_samp>
#include <irc>
#include <dudb>
#include <streamer>
#include <dprops>
#include <sscanf2>
#include <time>
#include <gvar>
#include <SpikeStrip>
// FilterScript Chat RP pour le Serveur RP Millitaire de Capitain Prince
// [url=http://www.gtaonline.fr/forums/]www.gtaonline.fr/forums/[/url]
// FilterScript fait par Pa2m972, scripteur professionel et C'Helper de GTAOnline
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Chat RP by pa2m972");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Chat RP by pa2m972");
print("----------------------------------\n");
}
#endif
public OnPlayerText(playerid, text[])
{
new textv2[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "%d >> %s dit: %s", playerid, name, text);
SendPlayerMessageToAll(playerid, textv2);
return 0;
}