24.10.2013, 04:11
Well eh, that's not the thing i want.
Basically.
If the player won't have 150 score, he will have an "error" message, and it will force him to change his class on the next death // Show him the dialog.
Else will happen if the player would have 150 score.. And so on.
I have an /sc script "based" on this.
And that Class_Chosen works..
:[
EDIT: Even if i place the Class_Chosen ... = false; in a diff. place, it will still give me that error.
EDIT:Nvm, fixed it, thanks, will +rep when i can.. Currently says that i need to spread some rep for some of you.
Basically.
pawn Код:
if(GetPlayerScore(playerid) < 150) SendClientMessage(playerid, COLOR_RED, "You need to have 150 score to use the Sniper class!");
//FORCES the player to choose the class on next death.
//Or just shows the dialog again, but same error
else
SendClientMessage(playerid, COLOR_GREEN, "Sniper class chosen!");
Else will happen if the player would have 150 score.. And so on.
I have an /sc script "based" on this.
pawn Код:
CMD:sc(playerid, params[]) {
Class_Chosen{ playerid } = false; //Sets the Class_Chosen to False, so after he dies, he will be able to change his class.
SendClientMessage(playerid, COLOR_ORANGE, "Switching class after the next death.");
return 1;
}
:[
EDIT: Even if i place the Class_Chosen ... = false; in a diff. place, it will still give me that error.
EDIT:Nvm, fixed it, thanks, will +rep when i can.. Currently says that i need to spread some rep for some of you.

