06.01.2010, 18:33
Hello people, i have a problem, i have made this script:
And it works! But here are my questions:
1: if in die it returns back to invisible, how do i make it save?
2: if i log out it turns back to invisible, how do i make it save?
3: what do i need to make to make the colors also appear in chat
4: players with no team colors show invisible on the minimap i tried "ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL) ;"
"ShowPlayerMarkers(1);" but these don't work and i want to make a white blip for every noteam player
5: I can only change my own color, but how can i make it so that i can change outhers colors too?
If you could help me i'd thank you
Quote:
if(strcmp(cmd, "/setteam", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setteam [playerid/PartOfName] [Number(0-11)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 11 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 11!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(para1)) { if(level == 0) //Grove Street { SetPlayerColor(playerid, 0x33AA33AA); // Green } else if(level == 1) //Police Force { SetPlayerColor(playerid, 0x0000BBAA); // Blue } else if(level == 2) //FBI/ATF { SetPlayerColor(playerid, 0x191970AA); // Midnightblue } else if(level == 3) //National Guard { SetPlayerColor(playerid, 0x9ACD32AA); // Armygreen } else if(level == 4) //Fire/Ambulance { SetPlayerColor(playerid, 0x33CCFFAA); // Lightblue } else if(level == 5) //La Cosa Nostra { SetPlayerColor(playerid, 0x7FFF00AA); // chartreuse } else if(level == 6) //Yakuza { SetPlayerColor(playerid, 0xFF00FFFF); // pink } else if(level == 7) //Mayor { SetPlayerColor(playerid, 0xFFC0CBAA); // Very light pink } else if(level == ![]() { SetPlayerColor(playerid, 0xA52A2AAA); // brown } else if(level == 9) //News Reporters { SetPlayerColor(playerid, 0x8B008BAA); // purple } else if(level == 10) //Taxi Cab Company { SetPlayerColor(playerid, 0xFFFF00AA); // yellow } else if(level == 11) //Driving/Flying School { SetPlayerColor(playerid, 0xAFAFAFAA); // grey } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; } |
1: if in die it returns back to invisible, how do i make it save?
2: if i log out it turns back to invisible, how do i make it save?
3: what do i need to make to make the colors also appear in chat
4: players with no team colors show invisible on the minimap i tried "ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL) ;"
"ShowPlayerMarkers(1);" but these don't work and i want to make a white blip for every noteam player
5: I can only change my own color, but how can i make it so that i can change outhers colors too?
If you could help me i'd thank you