Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*********************************Skins****************************************
- //==============================By Elpiezas=====================================
- #include <a_samp>
- //==============================================================================
- new azteca[MAX_PLAYERS];
- new grove[MAX_PLAYERS];
- new vagos[MAX_PLAYERS];
- new ballas[MAX_PLAYERS];
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- azteca[playerid] = 0;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- azteca[playerid] = 0;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/azteca", cmdtext, true, 10) == 0)
- {
- if(azteca[playerid] == 0)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Azteca 1!");
- SetPlayerSkin(playerid, 115);
- azteca[playerid]++;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- if(azteca[playerid] == 1)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Azteca 2!");
- SetPlayerSkin(playerid, 116);
- azteca[playerid]++;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- if(azteca[playerid] == 2)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Azteca 3!");
- SetPlayerSkin(playerid, 114);
- azteca[playerid] = 0;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- return 1;
- }
- if (strcmp("/grove", cmdtext, true, 10) == 0)
- {
- if(grove[playerid] == 0)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Grove 1!");
- SetPlayerSkin(playerid, 105);
- grove[playerid]++;
- azteca[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- if(grove[playerid] == 1)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Grove 2!");
- SetPlayerSkin(playerid, 106);
- grove[playerid]++;
- azteca[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- if(grove[playerid] == 2)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Grove 3!");
- SetPlayerSkin(playerid, 107);
- grove[playerid] = 0;
- azteca[playerid] = 0;
- vagos[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- return 1;
- }
- if (strcmp("/ballas", cmdtext, true, 10) == 0)
- {
- if(ballas[playerid] == 0)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Ballas 1!");
- SetPlayerSkin(playerid, 104);
- ballas[playerid]++;
- azteca[playerid] = 0;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- return 1;
- }
- if(ballas[playerid] == 1)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Ballas 2!");
- SetPlayerSkin(playerid, 102);
- ballas[playerid]++;
- azteca[playerid] = 0;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- return 1;
- }
- if(ballas[playerid] == 2)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Ballas 3!");
- SetPlayerSkin(playerid, 103);
- ballas[playerid] = 0;
- azteca[playerid] = 0;
- grove[playerid] = 0;
- vagos[playerid] = 0;
- return 1;
- }
- return 1;
- }
- if (strcmp("/vagos", cmdtext, true, 10) == 0)
- {
- if(vagos[playerid] == 0)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Vagos 1!");
- SetPlayerSkin(playerid, 108);
- vagos[playerid]++;
- azteca[playerid] = 0;
- grove[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- if(vagos[playerid] == 1)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Vagos 2!");
- SetPlayerSkin(playerid, 109);
- vagos[playerid]++;
- azteca[playerid] = 0;
- grove[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- if(vagos[playerid] == 2)
- {
- SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Vagos 3!");
- SetPlayerSkin(playerid, 110);
- vagos[playerid] = 0;
- azteca[playerid] = 0;
- grove[playerid] = 0;
- ballas[playerid] = 0;
- return 1;
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerSpawn(playerid)
- {
- if(azteca[playerid] == 1){SetPlayerSkin(playerid, 115);}
- if(azteca[playerid] == 2){SetPlayerSkin(playerid, 116);}
- if(azteca[playerid] == 3){SetPlayerSkin(playerid, 114);}
- if(grove[playerid] == 1){SetPlayerSkin(playerid, 105);}
- if(grove[playerid] == 2){SetPlayerSkin(playerid, 106);}
- if(grove[playerid] == 3){SetPlayerSkin(playerid, 107);}
- if(ballas[playerid] == 1){SetPlayerSkin(playerid, 104);}
- if(ballas[playerid] == 2){SetPlayerSkin(playerid, 102);}
- if(ballas[playerid] == 3){SetPlayerSkin(playerid, 103);}
- if(vagos[playerid] == 1){SetPlayerSkin(playerid, 108);}
- if(vagos[playerid] == 2){SetPlayerSkin(playerid, 109);}
- if(vagos[playerid] == 3){SetPlayerSkin(playerid, 110);}
- return 0;
- }
- //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement