Can some one help me do a damn /enter and /exit command
#10

Quote:
Originally Posted by Karl1195
Посмотреть сообщение
yep, i can't fucken do this !

Can some one do it for me and tell me where should i place the stuff i got 80k lines fucken raven's roleplay and i need this shit..

Co-Ordinates


Код:
AddPlayerClass(287,1772.4011,-1548.4357,9.9063,221.5886,0,0,0,0,0,0); // enter prison from here 
AddPlayerClass(287,1770.2963,-1546.3507,9.9260,34.8402,0,0,0,0,0,0); // spawn here when you exit prison
AddPlayerClass(287,1808.6891,-1312.6675,197.1969,85.9376,0,0,0,0,0,0); // spawn here when you enter prison
AddPlayerClass(287,1810.3650,-1312.7653,197.1969,266.7327,0,0,0,0,0,0); // exit prison from here
Here you go, a simple /enter//exit command for you..
If you need more help you can PM me..
Quote:

if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1772.4011,-1548.4357,9.9063) {
SetPlayerInterior(playerid, /*Type /interior in the prison and type here the interior ID*/);
SetPlayerPos(playerid, 1808.6891,-1312.6675,197.1969);
return 1;
}
}
if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1810.3650,-1312.7653,197.1969) (
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1770.2963,-1546.3507,9.9260);
return 1;
}
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)