02.03.2011, 07:46
public OnPlayerCommandText(playerid,cmdtext[]){
if (strcmp("/kill",cmdtext,true)==0){
SetPlayerHealth(playerid,0);
}
if (strcmp("/open",cmdtext,true)==0){
if(IsPlayerAdmin(playerid))
MoveObject(3,1811.688721,-1895.821533,12.580940,1);
}
if (strcmp("/close",cmdtext,true)==0){
if(IsPlayerAdmin(playerid))
MoveObject(3,1811.688721,-1885.821533,12.580940,1);
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){
new modid;
modid = GetVehicleModel(vehicleid);
if (modid == 520) {
if (IsPlayerAdmin(playerid)){
SetVehicleParamsForPlayer(vehicleid,playerid,0,0); }
else{
SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
}
}}
could u pls at an teleport to this so i have an example how to do ?
if (strcmp("/kill",cmdtext,true)==0){
SetPlayerHealth(playerid,0);
}
if (strcmp("/open",cmdtext,true)==0){
if(IsPlayerAdmin(playerid))
MoveObject(3,1811.688721,-1895.821533,12.580940,1);
}
if (strcmp("/close",cmdtext,true)==0){
if(IsPlayerAdmin(playerid))
MoveObject(3,1811.688721,-1885.821533,12.580940,1);
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){
new modid;
modid = GetVehicleModel(vehicleid);
if (modid == 520) {
if (IsPlayerAdmin(playerid)){
SetVehicleParamsForPlayer(vehicleid,playerid,0,0); }
else{
SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
}
}}
could u pls at an teleport to this so i have an example how to do ?