11.06.2011, 19:08
Well, Im trying to make a gamemode.
So I tried alot of things.
I copied some of the OnPlayerRequestClass(playerid,classid) here.
What i found was you cant add classid into onplayerrequestspawn.
so i need help.HERE IS MY CODE:
So I tried alot of things.
I copied some of the OnPlayerRequestClass(playerid,classid) here.
What i found was you cant add classid into onplayerrequestspawn.
so i need help.HERE IS MY CODE:
Код:
public OnPlayerRequestSpawn(playerid) { switch(classid) { case 0: //SF Worker { new plyname[48]; if (dini_Int(plyname, "score") == 0) { return 1; } else { GameTextForPlayer(playerid, "You need 0 score to use this skin", 3000, 4); return 0; } } case 1: //SF Pimp { new plyname[48]; if (dini_Int(plyname, "score") == 10) { return 1; } else { GameTextForPlayer(playerid, "You need 10 score to use this skin", 3000, 4); return 0; } } case 2: //SF Golfer { new plyname[48]; if (dini_Int(plyname, "score") == 0) { return 1; } else { GameTextForPlayer(playerid, "You need 0 score to use this skin", 3000, 4); return 0; } } case 3: //SF Triad { new plyname[48]; if (dini_Int(plyname, "score") == 0) { return 1; } else { GameTextForPlayer(playerid, "You need 0 score to use this skin", 3000, 4); return 0; } } case 4: //SF Army { new plyname[48]; if (dini_Int(plyname, "score") == 50) { return 1; } else { GameTextForPlayer(playerid, "You need 50 score to use this skin", 3000, 4); return 0; } } case 5: //SF Mechanic { new plyname[48]; if (dini_Int(plyname, "score") == 0) { return 1; } else { GameTextForPlayer(playerid, "You need 0 score to use this skin", 3000, 4); return 0; } } case 6: //SF Medic { new plyname[48]; if (dini_Int(plyname, "score") == 0) { return 1; } else { GameTextForPlayer(playerid, "You need 0 score to use this skin", 3000, 4); return 0; } } case 7: //SF Swat { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 8: //SF Chicken { new plyname[48]; if (dini_Int(plyname, "score") == 0) { return 1; } else { GameTextForPlayer(playerid, "You need 0 score to use this skin", 3000, 4); return 0; } } case 9: //SF Toreno { new plyname[48]; if (dini_Int(plyname, "score") == 5) { return 1; } else { GameTextForPlayer(playerid, "You need 5 score to use this skin", 3000, 4); return 0; } } case 10: //SF Pilot { new plyname[48]; if (dini_Int(plyname, "score") == 10) { return 1; } else { GameTextForPlayer(playerid, "You need 10 score to use this skin", 3000, 4); return 0; } } case 11: //SF Da Nang { new plyname[48]; if (dini_Int(plyname, "score") == 5) { return 1; } else { GameTextForPlayer(playerid, "You need 5 score to use this skin", 3000, 4); return 0; } } case 12: //LV Balla { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 13: //Lv Balla { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 14: //Lv Balla { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 15: //Lv Grove { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 16: //Lv Grove { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 17: //Lv Grove { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 18: //Lv Vago { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 19: //Lv Vago { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 20: //Lv Azteca { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 21: //Lv Azteca { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 22: //Lv Azteca { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 23: //Lv Traid { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 24: //Lv Traid { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 25: //Lv Medic { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 26: //Lv Medic { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 27: //Lv Medic { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 28: //Lv Cop { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 29: //Lv Cop { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 30: //Lv Cop { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 31: //Lv Army { new plyname[48]; if (dini_Int(plyname, "score") == 50) { return 1; } else { GameTextForPlayer(playerid, "You need 50 score to use this skin", 3000, 4); return 0; } } case 32: //Lv Swat { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 33: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 34: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 35: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 36: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 37: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 38: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 39: //Lv Civil { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 40: //Ls Cop { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 41: //Ls Cop { new plyname[48]; if (dini_Int(plyname, "score") == 25) { return 1; } else { GameTextForPlayer(playerid, "You need 25 score to use this skin", 3000, 4); return 0; } } case 42: //Ls Grove { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 43: //Ls grove { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 44: //Ls Vagos { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 45: //Ls Vagos { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 46: //Ls Aztec { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 47: //Ls Aztec { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 48: //Ls Ballas { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 49: //Ls Ballas { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } case 50: //Ls Pizza { new plyname[48]; if (dini_Int(plyname, "score") == 1) { return 1; } else { GameTextForPlayer(playerid, "You need 1 score to use this skin", 3000, 4); return 0; } } } return 1; }