Punem asta Sus in Capul FileScriptului Sau GM-ului
Aici Sunt Cateva Clase De Playeri
public OnPlayerRequestClass(playerid, classid)
- Cod:
new Locked[MAX_PLAYERS];
Aici Sunt Cateva Clase De Playeri
- Cod:
public OnGameModeInit()
{
AddPlayerClass(221, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 0 - Nau Parola
AddPlayerClass(212, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 1 - Nau Parola
AddPlayerClass(199, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 2 -Are Parola
return 1;
}
public OnPlayerRequestClass(playerid, classid)
- Cod:
{
switch(classid)
{
case 0: Locked[playerid] = 0; //UNLOCKED
case 1: Locked[playerid] = 0; //UNLOCKED
case 2: Locked[playerid] = 1; //LOCKED
}
return 1;
}
- Cod:
public OnPlayerRequestSpawn(playerid)
{
if(Locked[playerid]) return 0;
//Opreste Playeru Sa Fie Spawnat =D
return 1;
}
- Cod:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/unlock YOUR_PASS"))//Unde Este 'YOU_PASS' Pui Parola Care Vrei TU De Ex 'This Is My Skin'
{
Locked[playerid] = 0;
SendClientMessage(playerid, -1, "Skins unlocked!");
}
return 1;
}