#include <a_samp>
#include <zcmd>
new gTeam[MAX_PLAYERS];
#define TEAM_OROSZ 1
#define FILTERSCRIPT
#define PIROS 0xff0000AA
#define FEKETE 0x000000AA
#define ZÖLD 0x00ff00AA
#if !defined INFINITY
#define INFINITY (Float:0x7F800000)
#endif
public OnPlayerSpawn(playerid)
{
SetPlayerTeam(playerid, TEAM_OROSZ);
return 1;
}
CMD:ruszki(playerid, params[])
{
if(gTeam[playerid] == TEAM_OROSZ)
{
GivePlayerWeapon (playerid, 24,500);
GivePlayerWeapon (playerid, 38,900);
SetPlayerColor (playerid, 0xff0000AA);
SendClientMessage (playerid, PIROS, \"Ruszki csomag hozzáadva! \" );
}
else
{
SendClientMessage (playerid, PIROS, \"Nem vagy orosz! \" );
}
return 1;
}
Evvel az a baj hogy le spawnolok és nem hadja a parancsot használni.