21.03.2012, 12:17
hi i create rp tutorial in my RP Script i test it with my friend and look WTF
when he goes to tutorial instead the tutorials goes to him it goes to me.
code
when he goes to tutorial instead the tutorials goes to him it goes to me.
code
pawn Код:
switch(dialogid)
{
case DIALOG_QUIZ4:
{
if(!response)
{
pInfo[playerid][RPQuiz] = 0;
Kick(playerid);
return 0;
}
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED, "Wrong answer!");
SendClientMessage(playerid, COLOR_RED, "You have been kick from LS Reality Roleplay!");
Kick(playerid);
return 1;
}
if(listitem == 1)
{
pInfo[playerid][RPQuiz] = 1;
SendClientMessage(playerid, COLOR_GREEN, "The correct answer is No, your answer is correct!, Now, you will process to RP Tutorial!");
ClearChat(playerid);
pInfo[playerid][RPTut] = 0;
SetPlayerVWIPosAng(playerid, 0, 0, 2549.9609,-1725.4025,6.2422,176.6857);
SetPlayerCamPosLookAt(playerid, 2541.9968,-1726.0835,13.5469, 2577.9915,-1734.1205,13.3828);
SetPlayerTutorial(playerid, 1);
SetTimer("RPTutorial", 12000, false);
return 1;
}
}
}
}
pawn Код:
forward RPTutorial(playerid);
forward RPTutorial2(playerid);
forward EndTutorial(playerid);
public RPTutorial(playerid)
{
ClearChat(playerid);
SetPlayerVWIPosAng(playerid, 0, 0, 1516.7466,-1748.7129,14.0469,89.7540);
SetPlayerCamPosLookAt(playerid, 1478.0715,-1722.5253,13.5469, 1480.8901,-1767.4830,18.7958);
SetPlayerTutorial(playerid, 2);
SetTimer("RPTutorial2", 10000, false);
return 1;
}
public RPTutorial2(playerid)
{
ClearChat(playerid);
SetPlayerVWIPosAng(playerid, 0, 0, 1761.0299,-1936.6840,13.5830,270.2418);
SetPlayerCamPosLookAt(playerid, 1810.0526,-1883.8502,13.5832,1780.6140,-1936.8596,13.5492);
SetPlayerTutorial(playerid, 3);
pInfo[playerid][RPTut] = 1;
SetTimer("EndTutorial", 15000, false);
return 1;
}
public EndTutorial(playerid)
{
ClearChat(playerid);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, true);
SetPlayerVWIPosAng(playerid, 0, 0, 1723.0146,-1878.4855,13.5646,359.2945);
return 1;
}
pawn Код:
enum PlayerInfo
{
RPTut,
};
new pInfo[MAX_PLAYERS][PlayerInfo];
pawn Код:
stock SetPlayerTutorial(playerid, notutorial)
{
if(notutorial == 1) {
SendClientMessage(playerid, 0xFFFFFFFF, "_______ | Los Santos Reality Roleplay RP Tutorial | _______");
SendClientMessage(playerid, 0xFFFFFFFF, " ");
SendClientMessage(playerid, 0xFFFF00FF, "Welcome to LS Reality Roleplay!");
SendClientMessage(playerid, 0xFFFF00FF, "LSRRP is locate in Los Santos, where the life is for gang!");
SendClientMessage(playerid, 0xFFFF00FF, "LSRRP contains some violence, please ask your parents first if you can play LSRRP");
SendClientMessage(playerid, 0xFFFF00FF, "In LSRRP, theres no Stunt/Freeroam/Drift Style, it is all about Roleplay!");
SendClientMessage(playerid, 0xFFFF00FF, "Now, we will process to next tutorial...");
}
if(notutorial == 2) {
SendClientMessage(playerid, 0xFFFFFFFF, "_______ | Los Santos Bank Central | _______");
SendClientMessage(playerid, 0xFFFFFFFF, " ");
SendClientMessage(playerid, 0xFFFF00FF, "You cannot always keep your money in your wallet");
SendClientMessage(playerid, 0xFFFF00FF, "You can put your money into LS Bank Central");
SendClientMessage(playerid, 0xFFFF00FF, "but be careful sometimes the LSBC has been rob by strangers");
SendClientMessage(playerid, 0xFFFF00FF, "Now, we will process to next tutorial...");
}
if(notutorial == 3) {
SendClientMessage(playerid, 0xFFFFFFFF, "_______ | Los Santos Taxi Company | _______");
SendClientMessage(playerid, 0xFFFFFFFF, " ");
SendClientMessage(playerid, 0xFFFF00FF, "Looking for hot job where you can drive a vehicle?");
SendClientMessage(playerid, 0xFFFF00FF, "You can!, Just apply at LS Taxi Company");
SendClientMessage(playerid, 0xFFFF00FF, "Taxi is one of hot job around LS, you can apply anytime if its necessary");
SendClientMessage(playerid, 0xFFFF00FF, "Taxi is not job recommended for you, sometimes stranger can jack your taxi");
SendClientMessage(playerid, 0xFFFF00FF, "Now, we will process to next tutorial...");
}
}